package com.cositas.dulces.lp;

import java.io.IOException;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.*;

@SuppressWarnings("serial")
public class CositasDulcesLpServlet extends HttpServlet {
	

	
	public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
		resp.setContentType("text/plain");
		String orden = req.getParameter("orden");
		System.out.println(orden);
		try {
			MailSender.sendEmail(orden);
			resp.getWriter().print("OK");
		} catch (Exception e) {
			resp.getWriter().print("ERR");
		}
	}
}
